<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">


    <h:form id="toolbar" >
        <p:menubar rendered="#{system.login}">
            <p:submenu label="System Claim" >
                <p:menuitem  value="My Profile" onclick="wgMyProfile.show();"/>
                <p:menuitem  value="Change Password" onclick="wgChangePassword.show();" />
                <p:menuitem  value="Change Answer" onclick="wgChangeAnswer.show();"/>
                <p:menuitem  value="Logout"                            
                             action="#{userBean.Logout}"                          
                             ajax="false"
                             update="@all"
                             >
                </p:menuitem>
            </p:submenu>

            <p:submenu label="Manage">
                <p:menuitem value="Manage Bank" rendered="#{system.manager}" url="#" onclick="wgViewBanking.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="Manage Hospital" rendered="#{system.manager}" url="#" onclick="wgViewHospital.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="Manage Payment" rendered="#{system.manager}" url="#" onclick="wgViewPayment.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="Manage Job" rendered="#{system.manager}"  url="#" onclick="wgViewJob.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="Manage ClaimType" rendered="#{system.manager}" url="#" onclick="wgViewClaimType.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="Manage Employee" rendered="#{system.adminAndManager}" url="#" onclick="wgViewEmployee.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="Manage Claim" rendered="#{system.managerAndEmployee}" url="#" onclick="wgViewClaim.show();" icon="ui-icon ui-icon-info"/>             
                <p:menuitem value="Manage Feedback" rendered="#{system.managerAndEmployee}" url="#" onclick="wgViewFeedBack.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="Code Register" rendered="#{system.adminAndManager}" url="#" onclick="wgViewCodeRegister.show();" icon="ui-icon ui-icon-info"/>
            </p:submenu>

            <p:submenu label="New">
                <p:menuitem value="New Bank" rendered="#{system.manager}" url="#"  onclick="wgCreateBanking.show();" icon="ui-icon ui-icon-info" />
                <p:menuitem value="New Hopital" rendered="#{system.manager}" url="#"  onclick="wgCreateHospital.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="New Payment" rendered="#{system.manager}" url="#"  onclick="wgCreatePayment.show();" icon="ui-icon ui-icon-info"/>
                <p:menuitem value="New Job" rendered="#{system.manager}" url="#"  onclick="wgCreateJob.show();" icon="ui-icon ui-icon-info" />
                <p:menuitem value="New ClaimType" rendered="#{system.manager}" url="#"  onclick="wgCreateClaimType.show();" icon="ui-icon ui-icon-info" />
                <p:menuitem value="New Employee" rendered="#{system.adminAndManager}" url="#"  onclick="wgCreateRegisterCode.show();" icon="ui-icon ui-icon-info" />

                <p:menuitem value="New Claim" rendered="#{system.employee}" url="#"  onclick="wgCreateCalim.show();" icon="ui-icon ui-icon-info" />
                <p:menuitem value="New FeedBack" rendered="#{system.employee}" url="#"  onclick="wgCreateFeedBack.show();" icon="ui-icon ui-icon-info" />
                <p:menuitem value="Reset System Claim" rendered="#{system.admin}" url="#"  onclick="wgSystemReset.show();" icon="ui-icon ui-icon-info"/>

            </p:submenu>



            <p:submenu label="Rss">
                <p:menuitem value="Manager RSS" url="#" onclick="wgManagerRss.show();"  icon="ui-icon ui-icon-arrowreturnthick-1-w"></p:menuitem>

            </p:submenu>
            <p:submenu label="Help">
                <p:menuitem value="How To ?" url="#" rendered="#{system.admin}" onclick="wgHowtoAdmin.show();" icon="ui-icon ui-icon-search"></p:menuitem>
                <p:menuitem value="How To ?" url="#" rendered="#{system.manager}" onclick="wgHowtoManager.show();" icon="ui-icon ui-icon-search"></p:menuitem>
                <p:menuitem value="How To ?" url="#" rendered="#{system.employee}" onclick="wgHowtoEmployee.show();" icon="ui-icon ui-icon-search"></p:menuitem>
                <p:menuitem value="About MyTeams" url="#" onclick="wgAboutUs.show();" icon="ui-icon ui-icon-search"></p:menuitem>
            </p:submenu>
        </p:menubar>
    </h:form>
</html>
